package com.zbs.framework.common.converter;

import org.springframework.core.convert.converter.Converter;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Component;

@Component
public class IntConverter implements Converter<String, Integer> {
    @Override
    public Integer convert(@NonNull String num) {
        return Integer.parseInt(num);
    }
}